﻿using System;
using System.Linq;
using Model.Entity;
using Ones.Dal.Repository.Interfaces;

namespace Ones.Dal.Repository.Impl
{
    public class RoleDao : AbstractDao<aspnet_Role>, IRoleDao
    {
        public override aspnet_Role
        getById(object id)
        {
            return getAll().Where(i => i.RoleId.Equals((Guid)id)).SingleOrDefault();
        }
    }

    #region IRoleDao

    public interface IRoleDao : IDao<aspnet_Role>
    {
    }
    #endregion
}